<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.sbl.bajw.common.web.RequestUnit"%>
<%@page import="com.sbl.bajw.pc.model.CarStaticModel"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../../common/prama.jsp" %>
<%
    List<HashMap<String, String>> pics = (List<HashMap<String, String>>)request.getAttribute("pics");
    CarStaticModel car = (CarStaticModel)request.getAttribute("car");
%>
<script type="text/javascript" src="${burl }/js/business/manager/car/CarDetail.js"></script>
<div class="CommonPanel" id="msg_search_div">
	<input type="hidden" id="model_id" value="${car.carId }"/>
	<div style="float:left;">
		<div style="width:200px;height:200px;overflow: hidden;position: relative;">
			<div id="picContentDiv" style="width:<%=200*pics.size()%>px;position: absolute;left:0">
				<%
					for(int i = 0 ;i<pics.size();i++){
						String imgUrl = BaseUrl +"/"+ pics.get(i).get("SMALLIMGURL");
				%>
				<img width="200" style="float:left" src="<%=imgUrl%>"/>
				<%
					}
				%>
			</div>
		</div>
		<div>
			<button id="preBtn" style="cursor: pointer;">上一张</button>
			<button id="picBtn" style="cursor: pointer;">放大图片</button>
			<button id="nextBtn" style="cursor: pointer;">下一张</button>
		</div>
	</div>
	<table >
		<tr>
			<td class="label">采集人:</td>
			<td class="input" style="width: 150px;">
				${car.showname }
			</td>
			<td class="label">采集时间:</td>
			<td class="input" style="width: 150px;">
				${car.createtime }
			</td>
			<td class="label">修改人:</td>
			<td class="input" style="width: 150px;">
				${car.updatername }
			</td>
		</tr>
		<tr>
			<td class="label">车牌号码:</td>
			<td class="input" style="width: 150px;">
				${car.carCode }
			</td>
			<td class="label">车牌颜色:</td>
			<td class="input">
				${car.carColor }
			</td>
			<td class="label">原始识别车牌号码:</td>
			<td class="input">
				${car.autoCarCode }
			</td>
			<td class="label">原始识别车牌颜色:</td>
			<td class="input">
				${car.autoCarColor }
			</td>
		</tr>
		<tr tag="baseInfo">
			<td class="label">移动网络：</td>
			<td class="input">
				<%
					if("0".equals(car.getMnc())){
				%>
				中国移动
				<%
					}else if("1".equals(car.getMnc())){
				%>
				中国联通
				<%
					}else if("2".equals(car.getMnc())){
				%>
				中国电信
				<%
					}
				%>
			</td>
			<td class="label">基站编号：</td>
			<td class="input">
				${car.cid }
			</td>
			<td class="label">位置区域码：</td>
			<td class="input">
				${car.lac }
			</td>
			<td class="label">基站信号强度：</td>
			<td class="input">
				${car.bsss }
			</td>
		</tr>
		<tr>
			<td class="label">采集地址:</td>
			<td class="input" colspan="3">
				${car.address }
			</td>
			<td class="label">备注:</td>
			<td class="input" colspan="3">
				${car.note }
			</td>
		</tr>
	</table>
	<input id="lat" type="hidden" value="${car.lat }"/>
	<input id="lon" type="hidden" value="${car.lon }"/>
	<input id=parentMenu type="hidden" value="/CarStatic/List.do"/>
	<div style="text-align: center;">
		<a href="#" id="baseInfo" style="font-size: 13px;font-weight: bold;">基站信息</a>
		<button class="commonBtn" style="font-size: 20px" id="tagBtn">标记</button>
		<button class="commonBtn" style="font-size: 20px" id="backBtn" onclick="window.close()">关闭</button>
	</div>
	<div style="clear: both;margin-bottom: 4px"></div>
	<div id="bmap" style="height: 270px;width: 100%;"></div>
</div>